Skip to main content

Reset Camera

You can reset the camera to default Pose by calling camera.reset

<div class="view3d-wrapper">
<div class="view3d-canvas">
<button id="reset">Reset Camera</button>
</div>

Add a click handler to button that calls camera.reset.

document
.querySelector("#reset")
.addEventListener("click", () => {
// You can set the duration of the animation, use 0 to instantly move to the initial camera pose.
view3D.camera.reset(500);
});